package com.example.springbootexamples.jedis;

import org.junit.Test;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class T {


    @Test
    public void t(){

        JedisPool pool = new JedisPool("h1", 6379);

        Jedis jedis=pool.getResource();
        jedis.auth("000000");
        String s=jedis.setex("a",10000,"b");


        System.out.println(s);

    }
}
